package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.EducationSecurityQuestionsDao;
import com.site.wisdom_construction.entity.personnelModule.EducationSecurityQuestions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/4/23
 * @Description
 */
@Service
public class EducationSecurityQuestionsService implements EducationSecurityQuestionsDao {
    @Autowired
    private EducationSecurityQuestionsDao educationSecurityQuestionsDao;

    @Override
    public int insertEducationSecurityQuestions(Map map) {
        return educationSecurityQuestionsDao.insertEducationSecurityQuestions(map);
    }

    @Override
    public int deleteEducationSecurityQuestions(Map map) {
        return educationSecurityQuestionsDao.deleteEducationSecurityQuestions(map);
    }

    @Override
    public int updateEducationSecurityQuestions(Map map) {
        return educationSecurityQuestionsDao.updateEducationSecurityQuestions(map);
    }

    @Override
    public List<EducationSecurityQuestions> findEducationSecurityQuestionsByPage(Map map) {
        return educationSecurityQuestionsDao.findEducationSecurityQuestionsByPage(map);
    }

    @Override
    public long Total(Map map) {
        return educationSecurityQuestionsDao.Total(map);
    }

    @Override
    public EducationSecurityQuestions findEducationSecurityQuestionsByEducationProfessionId(Map map) {
        return educationSecurityQuestionsDao.findEducationSecurityQuestionsByEducationProfessionId(map);
    }
}
